﻿<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="条件编译" />
<meta name="filter" content="Windows C/C++" />
<meta name="path" content="/Windows/C++/驱动开发" />
<meta name="location" content="驱动开发" />
<meta name="author" content="xia xiangjun" />
<title>驱动条件编译</title>
</head>
<body>
<h1>驱动条件编译</h1>
<p>在<em><strong>SOURCE</strong></em>文件里</p>
<font color="#666666">
<p><strong><em>!if</em></strong> &quot;$(DDK_TARGET_OS)&quot;==&quot;Win2K&quot;<br>
  #<br>
  # The driver is built in the Win2K build environment<br>
  #<br>
  C_DEFINES=$(C_DEFINES) -DNDIS40_MINIPORT=1<br>
  C_DEFINES=$(C_DEFINES) -DNDIS40=1<br>
  <strong><em>!else</em></strong><br>
  #<br>
  # The driver is built in the XP or .NET build environment<br>
  # So let us build NDIS 5.1 version.<br>
  #<br>
  C_DEFINES=$(C_DEFINES) -DNDIS51_MINIPORT=1<br>
  C_DEFINES=$(C_DEFINES) -DNDIS51=1<br>
<strong><em>!endif</em></strong></p>
</font>
</body>
</html>
